package kr.hkit.powerjava.chther20;

import java.util.StringTokenizer;

public class StringTokenizerEx {
	public static void main(String[] args) {
		StringTokenizer st = new StringTokenizer("1 2 3 4 5");
		
		while(st.hasMoreElements()){
			System.out.println(st.countTokens());
		}
//		System.out.println("======================================");
//		StringTokenizer st2 = new StringTokenizer("1,2,3,4,5,",",",true);
//		while(st.hasMoreElements()){
//			System.out.println(st2.nextToken());
//		}
	}
}
